/**
 * 获取浏览器地址栏各项参数
 */
let urlParam = {
  href: function() {
    var href = window.document.location.href;
    if (href.indexOf("?") > -1) {
      var params = href.split("?")[1];
      var paramArr = params.split('&');
      var res = {};
      for (var i = 0; i < paramArr.length; i++) {
        var str = paramArr[i].split('=');
        res[str[0]] = str[1];
      }
      return res;
    } else {
      return false;
    }
  },
  domain: function() {
    return "http://api.juyihome.com";
     // return "http://localhost:8081";
  },

  token: function() {
     return sessionStorage.getItem("token") ?  sessionStorage.getItem("token").replace("\"","").replace("\"","") : null;
   }
}